<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- 全局css引入 必须 -->
<link href="style/style.css" rel="stylesheet" type="text/css">
<link href="style/global.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
<!-- 结束 -->
<!-- 用到表单验证必须引入 -->
<jsp:include page="/vailidateInclude.jsp" />
<!-- 结束-->
<!--如用到ext必须引入 -->
<jsp:include page="/extInclude.jsp" />
<!--结束 -->

<!-- 日期控件开始 -->
<script type="text/javascript"
	src="<%=basePath%>/js/DatePicker/WdatePicker.js"></script>
<!-- 模块选择js -->
<script src="<%=basePath%>/js/selector/ModuleSelector.js"
	type="text/javascript"></script>
<script type="text/javascript">
<!--
//模块选择回调函数
function extCallBack(id,text){
document.getElementById("modid").value=id;
document.getElementById("modname").value=text;
}
//-->
</script>
<div class="rightCon" align="center">
	<div class="rightTitle2">
		<h3>
			<s:property value="nav" escape="false"/>
		</h3>
	</div>
	<s:form action="saveRight.do" method="post"
		cssClass="required-validate">
		<table class="formTable">
			<tr class="formTr">
				<td class="formLabel">
					所属模块：
				</td>
				<td>
					<s:hidden name="map.modid" id='modid' />
					<s:textfield name="map.modname" id='modname' readonly="true"
						cssClass="required" size="40" />
					<input type="button" class="buttonSelect" value="选择"
						onclick="ModuleSelector.getView (extCallBack).show()" />
				</td>
			</tr>
			<tr class="formTr">
				<td class="formLabel">
					权限名称：
				</td>
				<td>
					<s:hidden name="map.id" />
					<s:textfield name="map.name" cssClass="required" size="40" />
				</td>
			</tr>
			<tr class="formTr">
				<td class="formLabel">
					权限代码：
				</td>
				<td>
					<s:textfield name="map.code" cssClass="required" size="40" />
				</td>
			</tr>
			<tr class="formTr">
				<td>
					<div class="formLabel">
						代码简写：
					</div>
				</td>
				<td>
					<s:textfield name="map.simplecode" cssClass="required" size="40" />
				</td>
			</tr>
			<tr class="formTr">
				<td class="formLabel">
					排序：
				</td>
				<td>
					<s:textfield name="map.paixu" cssClass="validate-integer" size="40" />
				</td>
			</tr>
			<tr class="formTr">
				<td class="formLabel">
					权限说明：
				</td>
				<td>
					<s:textarea name="map.note" cols="40" />
				</td>
			</tr>
		</table>
		<table class="form_submit_bar">
			<tr>
				<td>
					<input class="buttonOk" id="button2" type="submit" value="保存" />
					<input class="buttonReset" id="button2" type="reset" value="重置" />
				</td>
			</tr>
		</table>
	</s:form>
</div>